#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>;

typedef char BTDataType;
typedef struct BTNode
{
    struct BTNode* left;
    struct BTNode* right;
    BTDataType val;
}BTNode;

BTNode* CreateBTNode(BTNode* root, char* arr, int* i)
{
    if (arr[*i] == NULL)
    {
        (*i)++;
        return NULL;
    }
    else if (arr[*i] == '#')
    {
        (*i)++;
        return NULL;
    }
    else
    {
        BTNode* root = (BTNode*)malloc(sizeof(BTNode));
        root->val = arr[*i];
        (*i)++;
        root->left = CreateBTNode(root->left, arr, i);
        root->right = CreateBTNode(root->right, arr, i);

    }


}

void PrintBTNode(BTNode* root)
{
    ;
}

int main() {
    BTNode* BT;
    char arr[100] = { 0 };
    scanf("%s", arr);
    int i = 0;

    CreateBTNode(&BT, arr, &i);
    return 0;
}